import type { BaseResponse } from "@/api/index.d";
import service from "@/utils/service";

export const useOrganizationCreateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/organization/create`,
    method: "POST",
    data,
  });
};
export const useOrganizationDeleteApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/organization/delete`,
    method: "POST",
    data,
  });
};
export const useOrganizationListApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/organization/list`,
    method: "POST",
    data,
  });
};
export const useOrganizationPageApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/organization/page`,
    method: "POST",
    data,
  });
};
export const useOrganizationUpdateApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/person/organization/update`,
    method: "POST",
    data,
  });
};
